Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFRouterLinkImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFRouterLinkImpl
- All Implemented Interfaces:
IPCData,OSPFRouterLink,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected IPAddressprotected Shortprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) getType()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetLinkData(IPAddress linkData) voidvoidvoidMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
linkId
-
linkData
-
type
-
metric
-
-
Constructor Details
-
OSPFRouterLinkImpl
public OSPFRouterLinkImpl()
-
-
Method Details
-
getLinkId
- Specified by:
getLinkIdin interfaceOSPFRouterLink- Returns:
- IPAddress Returns a IPAddress
-
setLinkId
- Specified by:
setLinkIdin interfaceOSPFRouterLink- Parameters:
linkId- Takes in a parameter of linkId
-
getLinkData
- Specified by:
getLinkDatain interfaceOSPFRouterLink- Returns:
- IPAddress Returns a IPAddress
-
setLinkData
- Specified by:
setLinkDatain interfaceOSPFRouterLink- Parameters:
linkData- Takes in a parameter of linkData
-
getType
- Specified by:
getTypein interfaceOSPFRouterLink- Returns:
- Byte Returns a Byte
-
setType
- Specified by:
setTypein interfaceOSPFRouterLink- Parameters:
type- Takes in a parameter of type
-
getMetric
- Specified by:
getMetricin interfaceOSPFRouterLink- Returns:
- Short Returns a Short
-
setMetric
- Specified by:
setMetricin interfaceOSPFRouterLink- Parameters:
metric- Takes in a parameter of metric
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-